var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = e("Util"),
    a = e("GameData"),
    r = (function () {
        function e(e) {
            var t = this;
            (this._countTime = 0),
                (this.map = new Map()),
                (this.oldParam = null),
                (this.newParam = null),
                (this._countTime = 30),
                (this.oldParam = i.default.deepCopy(e)),
                this.oldParam.aiData.forEach(function (e) {
                    return t.map.set(e.name, e.score);
                });
            for (var o = [], n = i.default.extractWithout(0, e.aiData.length - 1, 3), a = 0; a < n.length; a++)
                o.push(e.aiData[n[a]]);
            this.newParam = {
                isStoreHose: e.isStoreHose,
                isFirstKill: e.isFirstKill,
                killNum: e.killNum,
                score: e.score,
                aiData: o,
                temp: 1
            };
        }
        return (
            (e.prototype.getNewParam = function () {
                return (this.newParam.isCloseMask = !1), (a.default.instance.isStoreHose = !0), this.newParam;
            }),
            (e.prototype.mergeParam = function (e) {
                return (
                    (this.oldParam.score = e.score),
                    (this.oldParam.aiData = this.oldParam.aiData),
                    (this.oldParam.isCloseMask = !0),
                    (this.oldParam.isStoreHose = !1),
                    (a.default.instance.isStoreHose = !1),
                    (this.oldParam.temp = 1),
                    this.oldParam
                );
            }),
            (e.prototype.formatTime = function () {
                return Math.floor(this.countTime / 60) + "分" + (this.countTime % 60) + "秒";
            }),
            Object.defineProperty(e.prototype, "countTime", {
                get: function () {
                    return this._countTime;
                },
                set: function (e) {
                    this._countTime = e;
                },
                enumerable: !1,
                configurable: !0
            }),
            (e.TIP_SCORE = 5e3),
            (e.COMEIN_SCORE = 1e4),
            e
        );
    })();
n.default = r;
